<%@ page  
	contentType="text/html; charset=windows-874" 
	import=		"com.epro.standard.frontend.util.ShowData,
            com.softplus.carrefour.hd.CFHDSystem,
            com.softplus.carrefour.hd.bltier.admin.UserLevelManage,
            com.softplus.carrefour.hd.bltier.entity.UserLevel,
            java.util.Vector"
%>
<html>
  <head>
    <title>
      SELECT_USER_LEVEL
    </title>
  </head>
  <%
      String countryID      = ShowData.CheckNull(request.getParameter("countryID")) ;
        String  userLevelID     = "" ;
        String  userLevelLabel  = "" ;
      if (countryID != "")
      {
        UserLevelManage um      = (UserLevelManage)CFHDSystem.getControlClass("USER_LEVEL");
        Vector  ulv             = um.getUserLevelForAddOfficeHour(countryID) ;
        UserLevel  ul           = new UserLevel() ;
        for (int i=0; i<ulv.size(); i++)
        {
          userLevelID     += ",'" + ulv.elementAt(i).toString() + "'" ;
          userLevelLabel  += ",'" + ul.getLevelName(ulv.elementAt(i).toString()) + "'" ;
        }
        %>
          <script>
            var userLevelID     = new Array(''<%=userLevelID%>) ;
            var userLevelLabel  = new Array(''<%=userLevelLabel%>) ;
            for (i=0; i<userLevelID.length; i++)
            {
              var oOption = document.createElement("OPTION");
              parent.frm.userLevel.options.add(oOption);
              oOption.value     = userLevelID[i] ;
              oOption.innerText = userLevelLabel[i] ;
            }
          </script>
        <%
      }
  %>
  <body></body>
</html>